import { createApp } from 'vue'
import App from './App.vue'
import Layui from '@layui/layui-vue'
import registerCom from './plugins/register-com'
import Antd from 'ant-design-vue'
import router from './router'
import store from './store'
import { ElMessage } from 'element-plus'
import 'nprogress/nprogress.css'
import '@layui/layui-vue/lib/index.css'
import '@/icons'
import 'ant-design-vue/dist/antd.css'
import 'animate.css/animate.min.css'
import 'element-plus/es/components/message/style/css'

window.$message = function (message, type = 'success') {
  return ElMessage({
    message,
    type
  })
}

const app = createApp(App)

app.config.devtools = true

app.use(router).use(store).use(registerCom).use(Antd).use(Layui).mount('#app')